package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the MEDCINESTORE_SENDMEDCINE database table.
 * 
 */
@Entity
@Table(name="MEDCINESTORE_SENDMEDCINE")
@NamedQuery(name="MedcinestoreSendmedcine.findAll", query="SELECT m FROM MedcinestoreSendmedcine m")
public class MedcinestoreSendmedcine implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="MEDCINESTORE_SENDMEDCINE_ID")
	private long medcinestoreSendmedcineId;

	@Column(name="ELECTRONICPRESCRIOTION_ID")
	private BigDecimal electronicprescriotionId;

	@Column(name="GETMEDCINE_PEOPLE_")
	private String getmedcinePeople;

	@Column(name="MEDCINESTORE_MEDCINE_NUMBER")
	private BigDecimal medcinestoreMedcineNumber;

	@Temporal(TemporalType.DATE)
	@Column(name="SENDMEDCINE_DATE")
	private Date sendmedcineDate;

	//bi-directional many-to-one association to Medcinestore
	@ManyToOne
	@JoinColumn(name="MEDCINESTORE_ID")
	private Medcinestore medcinestore;

	//bi-directional many-to-one association to MedcineDetail
	@ManyToOne
	@JoinColumn(name="MEDCINE_ID")
	private MedcineDetail medcineDetail;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="STAFF_ID")
	private Staff staff;

	public MedcinestoreSendmedcine() {
	}

	public long getMedcinestoreSendmedcineId() {
		return this.medcinestoreSendmedcineId;
	}

	public void setMedcinestoreSendmedcineId(long medcinestoreSendmedcineId) {
		this.medcinestoreSendmedcineId = medcinestoreSendmedcineId;
	}

	public BigDecimal getElectronicprescriotionId() {
		return this.electronicprescriotionId;
	}

	public void setElectronicprescriotionId(BigDecimal electronicprescriotionId) {
		this.electronicprescriotionId = electronicprescriotionId;
	}

	public String getGetmedcinePeople() {
		return this.getmedcinePeople;
	}

	public void setGetmedcinePeople(String getmedcinePeople) {
		this.getmedcinePeople = getmedcinePeople;
	}

	public BigDecimal getMedcinestoreMedcineNumber() {
		return this.medcinestoreMedcineNumber;
	}

	public void setMedcinestoreMedcineNumber(BigDecimal medcinestoreMedcineNumber) {
		this.medcinestoreMedcineNumber = medcinestoreMedcineNumber;
	}

	public Date getSendmedcineDate() {
		return this.sendmedcineDate;
	}

	public void setSendmedcineDate(Date sendmedcineDate) {
		this.sendmedcineDate = sendmedcineDate;
	}

	public Medcinestore getMedcinestore() {
		return this.medcinestore;
	}

	public void setMedcinestore(Medcinestore medcinestore) {
		this.medcinestore = medcinestore;
	}

	public MedcineDetail getMedcineDetail() {
		return this.medcineDetail;
	}

	public void setMedcineDetail(MedcineDetail medcineDetail) {
		this.medcineDetail = medcineDetail;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}